﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sys_Param_Value_Setting.aspx.cs"
    Inherits="SYS_POPEDOM_Sys_Param_Value_Setting" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .no-icon
        {
            display: none;
        }
    </style>
    <script type="text/javascript" src="../JavaScript/Common.js"></script>
    <script type="text/javascript">
        function OnRadioChange() {
            var bRes;
            this.items.each(function(item) {
                if (item.checked)
                { bRes = item.inputValue; }
            });
            parent.Ext.getCmp("GridPanel1").selModel.selections.items[0].data.PARAMETER_STR = bRes;
            parent.Ext.getCmp("GridPanel1").selModel.getSelected().commit();
        }

        function FitHeightWin() {
            var pop = parent.Ext.getCmp('popwingy');
            pop.setHeight(Ext.getCmp('FormPanel1').getHeight());
        }

        function OnTextChange(e) {
          //  parent.Ext.getCmp("GridPanel1").selModel.selections.items[0].data.PARAMETER_STR = exttxt_Param.getValue();
          //  parent.Ext.getCmp("GridPanel1").selModel.getSelected().commit();
          var rowid=document.getElementById('Hdnrow').value;
            var  record3 = parent.Ext.getCmp("GridPanel1").store.data.items[rowid];
            record3.data.PARAMETER_STR=exttxt_Param.getValue();
            record3.commit();      //wan_110258
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager ID="ScriptManager1" runat="server" EnableViewState="true"  AjaxViewStateMode="Enabled">
        </ext:ResourceManager>
        <ext:viewport ID="Viewport1" runat="server" >
            <Content>
            <asp:HiddenField ID="Hdnrow" runat="server" />
            <ext:BorderLayout ID = "BorderLayout2" runat ="server">
                <Center>
                <%--<ext:FitLayout ID="FitLayout1" runat="server" >--%>
                    <ext:FormPanel ID="FormPanel1" runat="server" Border="false"  ButtonAlign="Right" EnableViewState="true" Layout="FitLayout"
                        Frame="true">
                        <Content>
                            <ext:FormLayout ID="FormLayout1" runat="server" LabelWidth="200" LabelStyle=" text-align:right; "><Anchors>
                                <ext:Anchor Horizontal="95%">
                                    <ext:TextField ID="exttxt_Param" runat="server" >
                                        <Listeners>
                                         <%--   <SpecialKey Handler="if(e.keyCode==13){OnTextChange();}"/>--%>
                                   
                                         <Change Handler="OnTextChange();"/>                         
                                      
                                        </Listeners>
                                    </ext:TextField>
                                </ext:Anchor>
                                <ext:Anchor Horizontal="95%">
                                    <ext:RadioGroup ID="RadioGroup1" runat="server" ItemCls="x-check-group-base" ColumnsNumber="1"
                                        Visible="false" LabelStyle=" text-align:right; " FieldLabel="121111212"><Items></Items>
                                        <Listeners>
                                            <Change Fn="OnRadioChange" />
                                        </Listeners>
                                    </ext:RadioGroup>
                                </ext:Anchor></Anchors>
                            </ext:FormLayout>
                        </Content>
                    </ext:FormPanel>
                <%--</ext:FitLayout>--%>
                </Center>
            </ext:BorderLayout>
            </Content>
        </ext:viewport>
    </div>
    </form>
</body>
</html>
